<?php

    if ($location == NULL) {$helasverige = "selected='selected'";}
    if ($location == 'Vastmanland') {$Vastmanland= "selected='selected'";}
    if ($location == 'Stockholm') {$Stockholm = "selected='selected'";}
    if ($location == 'Uppland') {$Uppland = "selected='selected'";}
    //This is temporary just to make it look good! Ändra i databasen ist!!




//Headcategory and subcategory is included as hidden variables in the form,
//This is because we need to maintain them to keep the logic in the menusystem
//Prints the droplist in getPaintings.php
$null = NULL;
if ($subCategory != NULL){
    $subValue = "<input type='hidden' name='subCategory' value = '$subCategory' >";
// detta måste läggas till eftersom att subCategory ibland är null och blir databasqueryn konstig!
}
if ($priceSort != NULL){
    $sortValue = "<input type='hidden' name='priceSort' value = '$priceSort' >";
// detta måste läggas till eftersom att subCategory ibland är null och blir databasqueryn konstig!
}
if ($headCategory != NULL){
    $headValue = "<input type='hidden' name='headCategory' value = '$headCategory' >";

    }

print "

    <NOBR>

    <div style='z-index: 10; position: absolute; left: -11px; top:-35px; width: 200px; padding: 10px; color: black; '>

    <form action='getPaintings.php' method='get'>


   <div style='font-color:black; font-size:11px; color:black; font-weight: lighter; font-family:Helvetica, sans-serif;;'>VISA VERK I:&nbsp;
    <select name='location'onChange = 'this.form.submit()'  >

        <option value='$null' $helasverige>Hela sverige</option>
        <option value='Västmanland' $Vastmanland>Västmanland</option>
	<option value='Uppland' $Uppland>Uppland</option>
	<option value='Stockholm' $Stockholm>Stockholm</option>
	</select>
	
	
$headValue
$subValue
$sortValue
</form>
</div>
    </NOBR>

    </div>";

?>
